home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / CIncludes / QD3DString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  2.5 KB  |  119 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QD3DString.h
  3.  
  4.      Contains:    Q3CString methods
  5.  
  6.      Version:    Technology:    Quickdraw 3D 1.5.4
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1995-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __QD3DSTRING__
  18. #define __QD3DSTRING__
  19.  
  20. #ifndef __QD3D__
  21. #include <QD3D.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=power
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46. #if PRAGMA_ENUM_ALWAYSINT
  47.     #pragma enumsalwaysint on
  48. #elif PRAGMA_ENUM_OPTIONS
  49.     #pragma option enum=int
  50. #elif PRAGMA_ENUM_PACK
  51.     #if __option(pack_enums)
  52.         #define PRAGMA_ENUM_PACK__QD3DSTRING__
  53.     #endif
  54.     #pragma options(!pack_enums)
  55. #endif
  56.  
  57. /******************************************************************************
  58.  **                                                                             **
  59.  **                                String Routines                                 **
  60.  **                                                                             **
  61.  *****************************************************************************/
  62. EXTERN_API_C( TQ3ObjectType )
  63. Q3String_GetType                (TQ3StringObject         stringObj);
  64.  
  65.  
  66. /******************************************************************************
  67.  **                                                                             **
  68.  **                        C String Routines                                     **
  69.  **                                                                             **
  70.  *****************************************************************************/
  71. EXTERN_API_C( TQ3StringObject )
  72. Q3CString_New                    (const char *            str);
  73.  
  74. EXTERN_API_C( TQ3Status )
  75. Q3CString_GetLength                (TQ3StringObject         stringObj,
  76.                                  unsigned long *        length);
  77.  
  78. EXTERN_API_C( TQ3Status )
  79. Q3CString_SetString                (TQ3StringObject         stringObj,
  80.                                  const char *            str);
  81.  
  82. EXTERN_API_C( TQ3Status )
  83. Q3CString_GetString                (TQ3StringObject         stringObj,
  84.                                  char **                str);
  85.  
  86. EXTERN_API_C( TQ3Status )
  87. Q3CString_EmptyData                (char **                str);
  88.  
  89.  
  90.  
  91. #if PRAGMA_ENUM_ALWAYSINT
  92.     #pragma enumsalwaysint reset
  93. #elif PRAGMA_ENUM_OPTIONS
  94.     #pragma option enum=reset
  95. #elif defined(PRAGMA_ENUM_PACK__QD3DSTRING__)
  96.     #pragma options(pack_enums)
  97. #endif
  98.  
  99. #if PRAGMA_STRUCT_ALIGN
  100.     #pragma options align=reset
  101. #elif PRAGMA_STRUCT_PACKPUSH
  102.     #pragma pack(pop)
  103. #elif PRAGMA_STRUCT_PACK
  104.     #pragma pack()
  105. #endif
  106.  
  107. #ifdef PRAGMA_IMPORT_OFF
  108. #pragma import off
  109. #elif PRAGMA_IMPORT
  110. #pragma import reset
  111. #endif
  112.  
  113. #ifdef __cplusplus
  114. }
  115. #endif
  116.  
  117. #endif /* __QD3DSTRING__ */
  118.  
  119.